#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

int unval;
int gval = 100;

int main()
{
    printf("code addr: %p\n", main);
    printf("gval addr: %p\n", &gval);
    printf("unval addr: %p\n", &unval);

    int *mem = (int*)malloc(10*sizeof(int));
    printf("heap add: %p\n", mem);

    int a,b,c;
    printf("stack addr : %p\n", &a);
    printf("stack addr : %p\n", &b);
    printf("stack addr : %p\n", &c);
}
